<script src="http://localhost/php/login/js/jquery.js"></script><script>$(document).ready(function(){$(".calculate").click(function(){//alert('kjhjh');});});</script><form action="even.php" method="post"><input type="text" name="first" class="first" /><input type="text" name="second" class="second" /><input type="button" value="calculate" class="calculate" /></form>